import Home from '@/views/home.vue'
import Index from '@/views/index.vue'
import Login from '@/views/login.vue'
import Shop from '@/views/shop.vue'
import User from '@/views/user.vue'
import { createRouter, createWebHistory } from 'vue-router'


const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/home',
      component: Home,
      children: [
        {
          path: 'user',
          component: User,
        },
         {
          path: 'shop',
          component: Shop,
        },
         {
          path: 'index',
          component: Index,
        },
         {
          path: 'login',
          component: Login,
        },
      ]
    },
  ],
})

export default router
